shadow: Don't crash xen if hvm_read() from paged or shared memory
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 26 Mar 2010 08:48:08 +0000 (08:48 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 26 Mar 2010 08:48:08 +0000 (08:48 +0000)
commitb8352255b3eac73ab2f15874575613603aa2e9c0
tree448d31813c65f5fc24973f6b0e314a48a736ad84
parentdaf911baab4db150c38c2a5f379ec074b412c5e5
shadow: Don't crash xen if hvm_read() from paged or shared memory

There are two new return cases from hvm_copy_from_guest_virt() to deal
with paging or shared memory -- retry the emulation rather than
crash.

Signed-off-by: Steven Hand <steven.hand@cl.cam.ac.uk>
xen/arch/x86/mm/shadow/common.c